﻿using MangoMes.MVC.Commands;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using System.Threading.Tasks;

namespace MangoMes.MVC.Controllers
{
    public class DocumentController : Controller
    {
        private readonly IpAddressesConfig _ipAddressesConfig;

        public DocumentController(IOptions<IpAddressesConfig> ipAddressesConfig)
        {
            _ipAddressesConfig = ipAddressesConfig.Value;
        }
        /// <summary>
        /// 仓库显示
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            return View();
        }


        /// <summary>
        /// 仓库添加
        /// </summary>
        /// <returns></returns>
        public IActionResult StashAdd()
        {
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }


        /// <summary>
        /// 日志html
        /// </summary>
        /// <returns></returns>
        public IActionResult Loginhtml()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            return View();

        }


        /// <summary>
        /// 工序添列表
        /// </summary>
        /// <returns></returns>
        public IActionResult processhtml()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 工序添加
        /// </summary>
        /// <returns></returns>


        public IActionResult ProcessAdds()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 工序编辑
        /// </summary>
        /// <returns></returns>
        public IActionResult Processback()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产任务添加
        /// </summary>
        /// <returns></returns>


        public IActionResult ProductionTaskhtml()
        {

            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 生产任务显示
        /// </summary>
        /// <returns></returns>
        public IActionResult ProductionTaskDisplay()
        {

            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }


        /// <summary>
        /// 生产任务修改
        /// </summary>
        /// <returns></returns>
        public IActionResult ProductionTaskModification()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();

        }
        /// <summary>
        /// 生产排产页面
        /// </summary>
        /// <returns></returns>
        public IActionResult ProceHtmlSchedulings()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }


        /// <summary>
        /// 转移挑拨单
        /// </summary>
        /// <returns></returns>
        public IActionResult DiversionView()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }

        /// <summary>
        /// 转移挑拨单新增
        /// </summary>
        /// <returns></returns>
        public IActionResult DiversionAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 步骤
        /// </summary>
        /// <returns></returns>
        public IActionResult Description()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();

        }
        /// <summary>
        /// 步骤修改
        /// </summary>
        /// <returns></returns>

        public IActionResult DEesCsiptionBacnk()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();

        }





    }
}
